# Contributor: llnu <llnu@ungleich.ch>
# Maintainer: llnu <llnu@ungleich.ch>

pkgname=vym
pkgver=2.7.1
pkgrel=0
pkgdesc="View Your Mind (VYM) is a cross-platform concept mapping software"
url="https://www.insilmaril.de/vym/"
arch="all"
license="GPL-2.0-only"
depends="dbus-x11"
makedepends="qtchooser qt5-qtscript-dev qt5-qtsvg-dev"
source="https://netcologne.dl.sourceforge.net/project/$pkgname/$pkgver/$pkgname-$pkgver.tar.bz2"

build() {
	qmake PREFIX=/usr/share
	make
}

package() {
	# Install files
	make INSTALL_ROOT=$pkgdir install

	# Fix executable path
	mv $pkgdir/usr/share/bin $pkgdir/usr/bin
}

sha512sums="985dbf18f743c36b484050ae24e4392eeae701c6c72fca6bd3dc5b70b38a283211946e279804c66253b5a394a642683ca4e3a66a7288400a9193fbcbfd8c9582  vym-2.7.1.tar.bz2"
